xen/arm: acpi: Fix SMP support when booting with ACPI
authorJulien Grall <julien.grall@arm.com>
Mon, 11 Apr 2016 13:33:35 +0000 (14:33 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 11 Apr 2016 14:07:38 +0000 (10:07 -0400)
commit632b7a1e08b4bc3682b36f7956098b0e4aaff272
tree5fc3e4388db97634e0e84d3eb7ff6c57f9a72039
parent62b70bedca3d6b0f8c53a459e53a5de19b9a1041
xen/arm: acpi: Fix SMP support when booting with ACPI

The variable enabled_cpus is used to know the number of CPU enabled in
the MADT.

Currently this variable is used to check the validity of the boot CPU.
It will be considered invalid when "enabled_cpus > 1".

However, this condition also means that multiple CPUs are present on the
system. So secondary will never be brought up.

The correct way to check the validity of the boot CPU is to use the
variable bootcpu_valid.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org>
xen/arch/arm/acpi/boot.c